package controllers

import java.util.concurrent.TimeUnit

import akka.util.Timeout
import cn.socialcredits.activity.data.implicits.{BSONImplicits, JSONImplicits}
import com.typesafe.scalalogging.StrictLogging
import play.api.Play
import play.api.libs.concurrent.Execution
import play.api.mvc.Controller

trait BaseController extends BSONImplicits with JSONImplicits with StrictLogging {
  this: Controller =>

  implicit def __ec = Execution.Implicits.defaultContext

  implicit def __app = Play.current

  implicit def __timeout = Timeout(30, TimeUnit.SECONDS)
}
